package com.tjsinfo.tjsoa.fileExpress.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;

import com.tjsinfo.tjsoa.Dao.IQbcDao;
import com.tjsinfo.tjsoa.fileExpress.vo.TjsUserEmail;

public class IntoSheZhiUserAction extends Action{
	private IQbcDao qbcDao;

	public void setQbcDao(IQbcDao qbcDao) {
		this.qbcDao = qbcDao;
	}
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		
		DetachedCriteria criteria = DetachedCriteria.forClass(TjsUserEmail.class);
		DetachedCriteria criteria1 = criteria.createCriteria("tjsUser");
		criteria1.addOrder(Order.asc("orderNo"));
		List<TjsUserEmail> userList=qbcDao.getCriteria(criteria);
		request.setAttribute("list", userList);
		return mapping.findForward("ok");
	}
}
